package com.bdqn.system.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bdqn.system.entity.Standard;
import com.bdqn.system.mapper.StandardMapper;
import com.bdqn.system.service.StandardSrevice;

@Service("StandardService")
public class StandardServiceImpl implements StandardSrevice {
	
	@Autowired
	private StandardMapper standardMapper; 
	
	

	public StandardMapper getStandardMapper() {
		return standardMapper;
	}

	public void setStandardMapper(StandardMapper standardMapper) {
		this.standardMapper = standardMapper;
	}



	@Override
	public  int  deleteById(int id) {
		// TODO Auto-generated method stub
		return standardMapper.deleteById(id);
	}

	@Override
	public int getTotalCount(String name) {
		// TODO Auto-generated method stub
		return standardMapper.getTotalCount(name);
	}

	@Override
	public List<Standard> findByPage(String name, int page, int pageSize) {
		// TODO Auto-generated method stub
		return standardMapper.findByPage(name, page, pageSize);
	}

	@Override
	public List<Standard> findByName(String name) {
		// TODO Auto-generated method stub
		return standardMapper.findByName(name);
	}

	@Override
	public int addStand(Standard standard) {
		return standardMapper.addStand(standard);
	}

	


}
